<template>
  <div class="screen-container">
    <div ref="screenRef" class="screen-content">
      <img src="./assets/bg.jpg" alt="bg" />
    </div>
  </div>
</template>

<script setup lang="ts">
import { useResize } from "@/composables/useResize";

const { screenRef } = useResize({ fullscreen: true });
</script>

<style scoped lang="scss">
.screen-container {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: #000;
  background-size: 100% 100%;

  .screen-content {
    width: 1920px;
    height: 1080px;
    position: relative;
    overflow: hidden;
    transform-origin: 0 0;
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 0.5s;
  }
}
</style>
